package myjavab;

public class Student {
	private String sid;
	private String sname;
	private String sdept;
	private int age;
	private int score;
	
	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getSdept() {
		return sdept;
	}

	public void setSdept(String sdept) {
		this.sdept = sdept;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Student(String sid,String sname,String sdept,int age,int score) {
		this.sid=sid;
		this.sname=sname;
		this.sdept=sdept;
		this.age=age;
		this.score=score;
	}
	
	public String toString() {
		return getSid()+" "+getSname()+" "+getSdept()+" "+getAge()+" "+getScore();
	}

}
